﻿///////////////////////////////////////////////////////////////
// This is generated code. If you modify this code, be aware
// of the fact that when you re-generate the code, your changes
// are lost. If you want to keep your changes, make this file read-only
// when you have finished your changes, however it is recommended that
// you inherit from this class to extend the functionality of this generated
// class or you modify / extend the templates used to generate this code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 1.0.2005.1
// Code is generated on: October 21, 2008 12:02:15 AM
// Code is generated using templates: C# template set for SqlServer (1.0.2005.1)
// Templates vendor: Solutions Design.
// Templates version: 1.0.2005.1.111705
//////////////////////////////////////////////////////////////
using System;

using Ultimate.DAL;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace Ultimate.DAL.FactoryClasses
{
	/// <summary>Class which eases the creation of sort clauses used in a SortExpression, to sort resultsets on specified fields.</summary>
	public partial class SortClauseFactory
	{
		/// <summary>Static class, no CTor</summary>
		private SortClauseFactory()
		{
		}

		/// <summary>Creates a new sort clause for the Aspnet_UsersEntity field specified.</summary>
		public static ISortClause Create(Aspnet_UsersFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the Aspnet_UsersEntity field specified.</summary>
		public static ISortClause Create(Aspnet_UsersFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the Cs_UsersEntity field specified.</summary>
		public static ISortClause Create(Cs_UsersFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the Cs_UsersEntity field specified.</summary>
		public static ISortClause Create(Cs_UsersFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the FieldEntity field specified.</summary>
		public static ISortClause Create(FieldFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the FieldEntity field specified.</summary>
		public static ISortClause Create(FieldFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the GameEntity field specified.</summary>
		public static ISortClause Create(GameFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the GameEntity field specified.</summary>
		public static ISortClause Create(GameFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the LeagueEntity field specified.</summary>
		public static ISortClause Create(LeagueFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the LeagueEntity field specified.</summary>
		public static ISortClause Create(LeagueFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the LocationEntity field specified.</summary>
		public static ISortClause Create(LocationFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the LocationEntity field specified.</summary>
		public static ISortClause Create(LocationFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the PlayerEntity field specified.</summary>
		public static ISortClause Create(PlayerFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the PlayerEntity field specified.</summary>
		public static ISortClause Create(PlayerFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the RoleEntity field specified.</summary>
		public static ISortClause Create(RoleFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the RoleEntity field specified.</summary>
		public static ISortClause Create(RoleFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the TeamEntity field specified.</summary>
		public static ISortClause Create(TeamFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the TeamEntity field specified.</summary>
		public static ISortClause Create(TeamFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}

		/// <summary>Creates a new sort clause for the TeamPlayerEntity field specified.</summary>
		public static ISortClause Create(TeamPlayerFieldIndex fieldToSort, SortOperator operatorToUse)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse);
		}

		/// <summary>Creates a new sort clause for the TeamPlayerEntity field specified.</summary>
		public static ISortClause Create(TeamPlayerFieldIndex fieldToSort, SortOperator operatorToUse, string objectAlias)
		{
			return new SortClause(EntityFieldFactory.Create(fieldToSort), operatorToUse, objectAlias);
		}


		#region Included Code

		#endregion
	}
}
